import { defineStore } from 'pinia'

export const useMournStore = defineStore({
    id: 'mourn-store',
    state: () => ({
		mourningStyle: `
			-webkit-filter: grayscale(100%);
			-moz-filter: grayscale(100%);
			-ms-filter: grayscale(100%);
			-o-filter: grayscale(100%);
			filter:progid: DXImageTransform.Microsoft.BasicImage(grayscale=1);
			_filter:none;
		`,
    }),

    getters: {
        getMourn() {
            return this.mourningStyle
        }
    },
    actions: {
		// 设置哀悼模式
		setMourn(mourningStyle){
			this.mourningStyle = mourningStyle
		}
    }
})